﻿using System;
using System.Linq;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;

/// <summary>
/// Summary description for AutoComplete
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class AutoComplete : System.Web.Services.WebService
{

    public AutoComplete()
    {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public string[] GetBrandList(string prefixText, int count)
    {
        return DAL.Brand.GetBrandList(prefixText, count);
    }

    [WebMethod]
    public string[] GetWarrantyList(string prefixText, int count)
    {
        return DAL.Warranty.GetWarrantyList(prefixText, count);
    }

}

